$(function(){
	let page = 2;
	$(".j-more").click(function(){
		let cateId = $(this).attr("data-cateId")
		let seCateId = $(this).attr("data-seCateId")
		
		let url = "/study230227/page.do"
		let postData ={
			cateId : cateId,
			seCateId :  seCateId,
			page :  page
		}
		
		$.get(url, postData, function(data){
			//console.log(data)
			var html = $(".j-news-list").html()
			$(data).each(function(){
				html += `
				   <div class="news-list-item clearfix">
						<div class="col-xs-5">
							<img src="/study230227/home/img/fff.png" />
						</div>
						<div class="col-xs-7">
							<a href="news.html" class="title">${this.title}</a>
							<div class="info">
								<span class="avatar"><img src="/study230227/home/img/logo.jpg">王花花</span>· <span>35k评论</span>·
								<span>10分钟前</span>
							</div>
						</div>
					</div>
				`
			})
			$(".j-news-list").html(html)
			page++
			//要变成没有更多了 TODO  a 
		},"json")
	})
})
